package com.iraeta.entity.vo;

import com.iraeta.entity.TreeNode;
import com.iraeta.entity.PermissionType;
import java.util.ArrayList;

public class SysPermission {
    public static ArrayList<TreeNode> getPermissionTreeNode(){
        TreeNode baseData_Node = new TreeNode(String.valueOf(PermissionType.baseData), "数据管理");
        TreeNode baseData_class_Node = new TreeNode(String.valueOf(PermissionType.baseData_class), "班级管理");
        TreeNode baseData_student_Node = new TreeNode(String.valueOf(PermissionType.baseData_student), "学生管理");
        baseData_Node.addNode(baseData_class_Node);
        baseData_Node.addNode(baseData_student_Node);

        TreeNode workLog_Node = new TreeNode(String.valueOf(PermissionType.workLog), "日志管理");
        TreeNode workLog_self_Node = new TreeNode(String.valueOf(PermissionType.workLog_self), "我的日志");
        TreeNode workLogmonth_self_Node = new TreeNode(String.valueOf(PermissionType.workLogmonth_self), "月度日志");
        workLog_Node.addNode(workLog_self_Node);
        workLog_Node.addNode(workLogmonth_self_Node);

        ArrayList<TreeNode> res = new ArrayList<TreeNode>();
        //res.add(baseData_Node);
        res.add(workLog_Node);
        return res;
    }
}
